package thread;

import model.ChessAction;
import model.ChessBoard;

/**
 * 机器人线程.
 *
 * @author 任禹名
 */
public class RobotThread extends Thread {
    private ChessAction chessAction;
    private ChessBoard chessBoard;
    private int degree;

    public RobotThread(ChessAction chessAction, ChessBoard chessBoard) {
        this.chessAction = chessAction;
        this.chessBoard = chessBoard;
    }

    public void setDegree(int degree) {
        this.degree = degree;
    }

    public void run() {
        chessBoard.robotChess(degree);
        System.out.println("退出机器人线程");
    }

}